

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../../../pages/Home/home_page.dart';
import '../../../theme.dart';

Scaffold scaffold(String title, BuildContext context, Widget root) {
  return Scaffold(
    appBar: AppBar(
      // title: Text(title, style: const TextStyle(color: SampleThemeConfigure.colorPrimary, fontSize: 14)),
      title: Text("当前设备：${title}", style: const TextStyle(fontSize: 16)),
      // backgroundColor: SampleThemeConfigure.colorBackground,
      leading: IconButton(
        icon: const Icon(Icons.arrow_back_ios),
        onPressed: () {
          HomePageState.globalKeytwo.currentState?.reloadData();
          Navigator.pop(context);
        },
      ),
      // actions: <Widget>[
      //   IconButton(
      //     icon: const Icon(Icons.more_vert_rounded,
      //         color: SampleThemeConfigure.colorPrimary),
      //     onPressed: () {},
      //   )
      // ],
    ),
    body: root,
  );
}
